package com.wan.net.exception;

/**
 * @author wwh
 * @date 2022/6/22 16:32
 */
public class RpcInvokeException extends RuntimeException{

    private static final String format = "[rpc]调用异常,service:[%s],msg:%s";

    public RpcInvokeException(String service,String message, Throwable cause) {
        super(String.format(format,service,message), cause);
    }

    public RpcInvokeException(String service,String message) {
        super(String.format(format,service,message));
    }
}
